/* ************************************************************************

   Copyright:

   License:

   Authors: SALMON Charles

************************************************************************ */

qx.Class.define("bip.services.SynchronizedTopics",
{
  extend : bip.services.AbstractService,
  
  type: "singleton",
  
  construct : function(url, delegate)
  {
    this.base(arguments);
    this._store.bind("model", this, "topics");
  },
  
  properties : {
    topics : {
      nullable: true,
      event: "changeTopics"
    }
  },
  

  members :
  {
    _store : null,
    
    fetchTopics : function() {
    	this._store.setUrl(null);
    	this._store.setUrl("topics/getAllTopics");
    }
  }
});